<%@ Import Namespace="MVCWeb.Helpers" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<MVCWeb.Models.Menu>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Filter</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Filter</h2>

    <table>
        <tr>
            <th></th>
            <th>
                MenuId
            </th>
            <th>
                CommunityId
            </th>
            <th>
                MenuName
            </th>
            <th>
                Link
            </th>
            <th>
                Type
            </th>
            <th>
                ParentMenuId
            </th>
            <th>
                SortOrder
            </th>
            <th>
                Active
            </th>
            <th>
                Desc
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id = item.MenuId }) %> |
            </td>
            <td>
                <%= Html.Encode(item.MenuId) %>
            </td>
            <td>
                <%= Html.Encode(item.CommunityId) %>
            </td>
            <td>
                <%= Html.Encode(item.MenuName) %>
            </td>
            <td>
                <%= Html.Encode(item.Link) %>
            </td>
            <td>
                <%= Html.Encode(item.Type) %>
            </td>
            <td>
                <%= Html.Encode(item.ParentMenuId) %>
            </td>
            <td>
                <%= Html.Encode(item.SortOrder) %>
            </td>
            <td>
                <%= Html.Encode(item.Active) %>
            </td>
            <td>
                <%= Html.Encode(item.Desc) %>
            </td>
        </tr>
    
    <% } %>

    </table>

   <div class="pager">
        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount) %>
    </div>
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

